<?php

namespace App\Http\Controllers\Owner;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class BaseController extends Controller
{
    public $owner_id = '';
    public $uuid = '';
    public $owner_phone = '';

    public function __construct()
    {
        session_start();

        if ( empty($_SESSION['ownerpc']['ownerpcuserid']) == true) {
            return  redirect()->to(route('owner.ownerForm'))->withErrors('系统错误');
        }
        $this->owner_id = $_SESSION['ownerpc']['ownerpcuserid'];
        $this->uuid = $_SESSION['ownerpc']['uuid'];
        $this->owner_phone = $_SESSION['ownerpc']['phone'];

    }
}
